<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
  <div id="menu">
    <div>
    	<ul style="display:block;list-style-type:none;">
    		<li><a href="home.xhtml">HOME</a></li>
    		<li><a href="search package.xhtml">RICERCA PACCHETTO</a></li>
    		<li><a href="search component.xhtml">RICERCA COMPONENTE</a></li>
    	</ul>
    </div>
  </div>
  <div id="right_column">
	<h:form>
	<p:panelGrid columns="3">
		<f:facet name="header">
			Modifica Hotel
		</f:facet>
		
		<h:outputLabel for="name" value="Nome hotel: *" />
		<p:inputText id="name" value="#{HotelSearch.current.name}" label="name" placeholder="#{HotelSearch.current.name}" />
		<p:message for="name" />
		
		<h:outputLabel for="stars" value="Numero di stelle: *" />
		<p:inputText id="stars" value="#{HotelSearch.current.stars}" label="stars" placeholder="#{HotelSearch.current.stars}" />
		<p:message for="stars" />
		
		<h:outputLabel for="street" value="Via: *" />
		<p:inputText id="street" value="#{HotelSearch.current.addressDTO.street}" label="street" placeholder="#{HotelSearch.current.addressDTO.street}" />
		<p:message for="street" />
		
		<h:outputLabel for="streetNumber" value="Numero civico: *" />
		<p:inputText id="streetNumber" value="#{HotelSearch.current.addressDTO.streetNumber}" label="streetNumber" placeholder="#{HotelSearch.current.addressDTO.streetNumber}" />
		<p:message for="streetNumber" />
		
		<h:outputLabel for="city" value="Città: *" />
		<p:inputText id="city" value="#{HotelSearch.current.addressDTO.city}" label="city" placeholder="#{HotelSearch.current.addressDTO.city}" />
		<p:message for="city" />
		
		<h:outputLabel for="cap" value="Cap: *" />
		<p:inputText id="cap" value="#{HotelSearch.current.addressDTO.cap}" label="cap" placeholder="#{HotelSearch.current.addressDTO.cap}" />
		<p:message for="cap" />
		
		<h:outputLabel for="district" value="Provincia: *" />
		<p:inputText id="district" value="#{HotelSearch.current.addressDTO.district}" label="price" placeholder="#{HotelSearch.current.addressDTO.district}" />
		<p:message for="district" />  
		
		<h:outputLabel for="nation" value="Nazione: *" />
		<p:inputText id="nation" value="#{HotelSearch.current.addressDTO.nation}" label="nation" placeholder="#{HotelSearch.current.addressDTO.nation}" />
		<p:message for="nation" /> 
		
	</p:panelGrid>

	<h:commandButton value="Update" action="#{HotelSearch.update()}" />
	</h:form>
	</div>
	</div>
</h:body>
</html>